package com.awanp3.nimbus.common.business.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 验证码类别
 *
 * @author 20014170
 */
@Getter
@AllArgsConstructor
public enum OrderNumberFormat {

    COUNT_ORDER("CNT",6),

    SCRAP_ORDER("SCP",6),

    CONSUME_ORDER("CSM",6);

    /**
     * 存储redis key/单号前缀
     */
    private final String prefix;

    /**
     * 是否拼接日期
     */
    private final boolean hasDate = true;

    /**
     * 序列号长度（左侧拼接0）
     */
    private final int length;


}
